 $(function() {// 初始化内容
        $('[name="status"]').bootstrapSwitch({
            onColor:"success",
            offColor:"default",
            size:"small",
            onSwitchChange:function(event,state){
                if(state==true){
                    $("#defaultSign").val("true");
                }else{
                    $("#defaultSign").val("false");
                }
            }
        });

    });

    function sumbitForm(memKey) {
        if($("#form").valid()){
            var dataJson = $("#form").serialize();
            $.ajax({
                url:"member/addMemInvoiceSubmit",
                type:"post",
                data:dataJson,
                success:function(data){
                    if(data.stateID==0&&data.businessState==0){
                    	 art.dialog.tips("添加成功");
                         window.location.href = "member/getMemInvoiceList";
                     }else if(data.stateID==4){
                         window.location.href = "member/gotoRegister";
                    }else {
                        art.dialog.tips(data.msgInfo);
                    }
                },
                error:function(e){
                	 art.dialog.tips("添加异常");
                }
            });
        }
    }
    //返回列表页
    function  _backList(memKey) {
        window.location.href = "member/getMemInvoiceList";
    }